/**
 * 
 */
package org.t2.game.server.module.recharge.model;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.enuma.AsyncType;
import org.gaming.service.repository.annotation.JvmCache;
import org.gaming.service.service.DailyResetEntity;
import org.gaming.service.service.jvm.PlayerOneToOneEntity;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 */
@Repository
@JvmCache
@Table(comment = "玩家充值表", dbAlias = "game", asyncType = AsyncType.INSERT)
public class RechargePlayer extends PlayerOneToOneEntity implements DailyResetEntity {
	@Column(comment = "未标记的订单", extra = "text")
	private Set<String> unMarkOrders = new HashSet<>();
	@Column(comment = "每日重置时间")
	private LocalDateTime dailyTime = LocalDateTime.now();
	@Column(comment = "今日累充，单位分")
	private long dailyRecharge;
	@Column(comment = "已发放今日累充邮件", length = 2000)
	private Set<Integer> dailyRewards = new HashSet<>();
	@Column(comment = "历史累充，单位分")
	private long hisRecharge;
	@Column(comment = "已发放历史累充邮件", length = 2000)
	private Set<Integer> hisRewards = new HashSet<>();
	
	public Set<String> getUnMarkOrders() {
		return unMarkOrders;
	}

	public void setUnMarkOrders(Set<String> unMarkOrders) {
		this.unMarkOrders = unMarkOrders;
	}

	public LocalDateTime getDailyTime() {
		return dailyTime;
	}

	public void setDailyTime(LocalDateTime dailyTime) {
		this.dailyTime = dailyTime;
	}

	public long getDailyRecharge() {
		return dailyRecharge;
	}

	public void setDailyRecharge(long dailyRecharge) {
		this.dailyRecharge = dailyRecharge;
	}

	public Set<Integer> getDailyRewards() {
		return dailyRewards;
	}

	public void setDailyRewards(Set<Integer> dailyRewards) {
		this.dailyRewards = dailyRewards;
	}

	public long getHisRecharge() {
		return hisRecharge;
	}

	public void setHisRecharge(long hisRecharge) {
		this.hisRecharge = hisRecharge;
	}

	public Set<Integer> getHisRewards() {
		return hisRewards;
	}

	public void setHisRewards(Set<Integer> hisRewards) {
		this.hisRewards = hisRewards;
	}
}
